{% extends 'layout.html' %}


{% block content %}
    <form action="" method="post" novalidate>
        {% csrf_token %}
        <div class="row">
            {% for foo in form %}
                <div class="col-md-4">
                    <div class="form-group" style="position: relative">
                        {{ foo.label_tag }}
                        {{ foo }}
                        <span style="position: absolute; color: red">{{ foo.errors.0 }}</span>
                    </div>
                </div>
            {% endfor %}
        </div>
        <input type="submit" class="btn btn-success" value="提交" style="margin-top: 10px">
    </form>
{% endblock %}